#ifndef BLOCK_H
#define BLOCK_H

#include "word.h"
#include "blockid.h"

class Block
{
	BlockID blockID_;
	unsigned int reserved_;
	unsigned int used_;
	Word *wordArray_;
	bool arrayOwner_;
public:
	Block();
	Block(Block &block);
	~Block();
	void setID(BlockID blockID)
	{
		blockID_ = blockID;
	}
	BlockID getID()
	{
		return blockID_;
	}
	void operator=(Block &block);
	bool addWord(char address, long int value);
	Word *begin();
	Word *end();
};

#endif
